<?php
/*
 * @Author: 李红雨 - RainLee <rainlee1990@yeah.net>
 * @Date: 2022-03-09 14:14:45
 * @LastEditors: 李红雨 - RainLee <rainlee1990@yeah.net>
 * @LastEditTime: 2022-03-25 15:42:25
 * @Description: File Description
 */

return [
    'default' => 'web',
    'app_key' => env('app.app_key'),
    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'user'
        ],
        'api' => [
            'driver' => 'jwt',
            'provider' => 'user'
        ],
        'admin' => [
            'driver' => 'session',
            'provider' => 'admin'
        ]
    ],

    'providers' => [
        'user' => [
            'driver' => 'model',
            'model' => app\admin\model\Users::class,
        ],
        'admin' => [
            'driver' => 'database',
            'table'  => 'users',
            'connection' => 'mysql', // database配置文件数据库链接名忽略为默认数据库链接
            'validate_pass' => 'md5' // 密码验证方式，默认password_verify
        ]
    ]
];
